﻿using Hvam.SharePoint.Search.Query.Site.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Hvam.SharePoint.Search.Tests.Internal.Query.Site.Models
{
    [TestClass]
    public class SiteSearchQueryTests
    {
        [TestMethod]
        public void SiteSearchQueryTestsIsUrlHttp()
        {
            // Arrange
            const string url = "http://sharepoint";

            // Act
            var result = SiteSearchQuery.IsUri(url);

            // Assert
            Assert.IsTrue(result);
        }

        [TestMethod]
        public void SiteSearchQueryTestsIsUrlHttps()
        {
            // Arrange
            const string url = "https://sharepoint";

            // Act
            var result = SiteSearchQuery.IsUri(url);

            // Assert
            Assert.IsTrue(result);
        }
    }
}
